<?php
class IndexController extends BaseController
{
    public function __construct($uri)
    {
        parent::__construct($uri);
    }

    public function index()
    {
        $m = new MovieModel();
        $movies = $m->getLastestMovies('', 0, 100);
        $this->output['http']['cache-control'] = array(
            'public',
            'max-age' => 60, //todo 为什么定60
        );
        $this->output['data']['filter']['level1'] = 'all';
        $this->output['data']['movies'] = $movies;
        $this->output['tpl'] = 'index';
        return $this->output;

    }
}
?>
